import request from "../../utils/request";


// 用户注册
const  register = (userInfo)=>{
    return request.post('/api/auth/register',userInfo)
}

// 用户登录
const  login = (loginInfo)=>{
    return request.post('/api/auth/login',loginInfo)
}

// 用户退出

const logOut = ()=>{
    return request.post('/api/auth/logout')
}


export {
    register,
    login,
    logOut
}